package com.example.controller;

import com.example.po.Settlecategory;
import com.example.service.SettlecategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/settlecategory")
public class SettleCategoryController {
    @Autowired
    private SettlecategoryService settlecategoryService;
    @RequestMapping("/list")
    public List<Settlecategory> list(){
        return settlecategoryService.list();
    }
}
